<?php
			
class Supplier_Form_Supplier_Detail extends Zend_Form
{
	public function __construct(Zend_Controller_Action $controller)
	{
		//supplier_code
		$supplier_code=$this->createElement ( 'text', 'supplier_code' )
		->setLabel ( $controller->getHelper('common')->getCaption('supplier_code' ))
		->setDescription ( $controller->getHelper('common')->getDescription('supplier_code' ))
		->setAttrib ( 'class','lock' )
		;
		
		//supplier_name
		$supplier_name=$this->createElement ( 'text', 'supplier_name' )
		->setLabel ( $controller->getHelper('common')->getCaption('supplier_name' ))
		->setDescription ( $controller->getHelper('common')->getDescription('supplier_name' ))
		->setAttrib ( 'class','lock' )
		;
		
		//supplier_address
		$supplier_address=$this->createElement ( 'textarea', 'supplier_address' )
		->setLabel ( $controller->getHelper('common')->getCaption('supplier_address' ))
		->setDescription ( $controller->getHelper('common')->getDescription('supplier_address' ))
		->setAttrib ( 'class','lock' )
		;
		
		//supplier_tax_code
		$supplier_tax_code=$this->createElement ( 'text', 'supplier_tax_code' )
		->setLabel ( $controller->getHelper('common')->getCaption('supplier_tax_code' ))
		->setDescription ( $controller->getHelper('common')->getDescription('supplier_tax_code' ))
		->setAttrib ( 'class','lock' )
		;
		
		//supplier_phone
		$supplier_phone=$this->createElement ( 'text', 'supplier_phone' )
		->setLabel ( $controller->getHelper('common')->getCaption('supplier_phone' ))
		->setDescription ( $controller->getHelper('common')->getDescription('supplier_phone' ))
		->setAttrib ( 'class','lock' )
		;
		
		//supplier_fax
		$supplier_fax=$this->createElement ( 'text', 'supplier_fax' )
		->setLabel ( $controller->getHelper('common')->getCaption('supplier_fax' ))
		->setDescription ( $controller->getHelper('common')->getDescription('supplier_fax' ))
		->setAttrib ( 'class','lock' )
		;
		
		//supplier_email
		$supplier_email=$this->createElement ( 'text', 'supplier_email' )
		->setLabel ( $controller->getHelper('common')->getCaption('supplier_email' ))
		->setDescription ( $controller->getHelper('common')->getDescription('supplier_email' ))
		->setAttrib ( 'class','lock' )
		;
		
		//supplier_website
		$supplier_website=$this->createElement ( 'text', 'supplier_website' )
		->setLabel ( $controller->getHelper('common')->getCaption('supplier_website' ))
		->setDescription ( $controller->getHelper('common')->getDescription('supplier_website' ))
		->setAttrib ( 'class','lock' )
		;
		
		//supplier_note
		$supplier_note=$this->createElement ( 'textarea', 'supplier_note' )
		->setLabel ( $controller->getHelper('common')->getCaption('supplier_note' ))
		->setDescription ( $controller->getHelper('common')->getDescription('supplier_note' ))
		->setAttrib ( 'class','lock' )
		;
		
		//supplier_vnd_account_code
		$supplier_vnd_account_code=$this->createElement ( 'textarea', 'supplier_vnd_account_code' )
		->setLabel ( $controller->getHelper('common')->getCaption('supplier_vnd_account_code' ))
		->setDescription ( $controller->getHelper('common')->getDescription('supplier_vnd_account_code' ))
		->setAttrib ( 'class','lock' )
		;
		
		//supplier_usd_account_code
		$supplier_usd_account_code=$this->createElement ( 'textarea', 'supplier_usd_account_code' )
		->setLabel ( $controller->getHelper('common')->getCaption('supplier_usd_account_code' ))
		->setDescription ( $controller->getHelper('common')->getDescription('supplier_usd_account_code' ))
		->setAttrib ( 'class','lock' )
		;
		
		//supplier_rep_name
		$supplier_rep_name=$this->createElement ( 'text', 'supplier_rep_name' )
		->setLabel ( $controller->getHelper('common')->getCaption('supplier_rep_name' ))
		->setDescription ( $controller->getHelper('common')->getDescription('supplier_rep_name' ))
		->setAttrib ( 'class','lock' )
		;
		
		//supplier_rep_address
		$supplier_rep_address=$this->createElement ( 'textarea', 'supplier_rep_address' )
		->setLabel ( $controller->getHelper('common')->getCaption('supplier_rep_address' ))
		->setDescription ( $controller->getHelper('common')->getDescription('supplier_rep_address' ))
		->setAttrib ( 'class','lock' )
		;
		
		//supplier_rep_phone
		$supplier_rep_phone=$this->createElement ( 'text', 'supplier_rep_phone' )
		->setLabel ( $controller->getHelper('common')->getCaption('supplier_rep_phone' ))
		->setDescription ( $controller->getHelper('common')->getDescription('supplier_rep_phone' ))
		->setAttrib ( 'class','lock' )
		;
		
		//supplier_rep_email
		$supplier_rep_email=$this->createElement ( 'text', 'supplier_rep_email' )
		->setLabel ( $controller->getHelper('common')->getCaption('supplier_rep_email' ))
		->setDescription ( $controller->getHelper('common')->getDescription('supplier_rep_email' ))
		->setAttrib ( 'class','lock' )
		;
		
		//supplier_rep_position
		$supplier_rep_position=$this->createElement ( 'text', 'supplier_rep_position' )
		->setLabel ( $controller->getHelper('common')->getCaption('supplier_rep_position' ))
		->setDescription ( $controller->getHelper('common')->getDescription('supplier_rep_position' ))
		->setAttrib ( 'class','lock' )
		;
		
		//supplier_rep_id_number
		$supplier_rep_id_number=$this->createElement ( 'text', 'supplier_rep_id_number' )
		->setLabel ( $controller->getHelper('common')->getCaption('supplier_rep_id_number' ))
		->setDescription ( $controller->getHelper('common')->getDescription('supplier_rep_id_number' ))
		->setAttrib ( 'class','lock' )
		;
		
		//supplier_rep_note
		$supplier_rep_note=$this->createElement ( 'textarea', 'supplier_rep_note' )
		->setLabel ( $controller->getHelper('common')->getCaption('supplier_rep_note' ))
		->setDescription ( $controller->getHelper('common')->getDescription('supplier_rep_note' ))
		->setAttrib ( 'class','lock' )
		;
		
		//supplier_contact_name
		$supplier_contact_name=$this->createElement ( 'text', 'supplier_contact_name' )
		->setLabel ( $controller->getHelper('common')->getCaption('supplier_contact_name' ))
		->setDescription ( $controller->getHelper('common')->getDescription('supplier_contact_name' ))
		->setAttrib ( 'class','lock' )
		;
		
		//supplier_contact_phone
		$supplier_contact_phone=$this->createElement ( 'text', 'supplier_contact_phone' )
		->setLabel ( $controller->getHelper('common')->getCaption('supplier_contact_phone' ))
		->setDescription ( $controller->getHelper('common')->getDescription('supplier_contact_phone' ))
		->setAttrib ( 'class','lock' )
		;
		
		//supplier_contact_position
		$supplier_contact_position=$this->createElement ( 'text', 'supplier_contact_position' )
		->setLabel ( $controller->getHelper('common')->getCaption('supplier_contact_position' ))
		->setDescription ( $controller->getHelper('common')->getDescription('supplier_contact_position' ))
		->setAttrib ( 'class','lock' )
		;
		
		//supplier_status
		$supplier_status=$this->createElement ( 'radio', 'supplier_status' )
		->setLabel ( $controller->getHelper('common')->getCaption('supplier_status' ))
		->setDescription ( $controller->getHelper('common')->getDescription('supplier_status' ))
		->setAttrib ( 'class','lock' )
		->setMultiOptions(array(1=>'Kích hoạt',0=>'Vô hiệu'))
		->setValue(1)
		;
		
		$this->addElements ( array (
			$supplier_code,
			$supplier_name,
			$supplier_address,
			$supplier_tax_code,
			$supplier_phone,
			$supplier_fax,
			$supplier_email,
			$supplier_website,
			$supplier_note,
			$supplier_vnd_account_code,
			$supplier_usd_account_code,
			$supplier_rep_name,
			$supplier_rep_address,
			$supplier_rep_phone,
			$supplier_rep_email,
			$supplier_rep_position,
			$supplier_rep_id_number,
			$supplier_rep_note,
			$supplier_contact_name,
			$supplier_contact_phone,
			$supplier_contact_position,
			$supplier_status,
		) );	
		
		$controller->getHelper ( 'common' )->form ( $this );
	}
}